from django.apps import AppConfig


class AccountsConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'apps.accounts'

    def ready(self):
        app_white_list = [
            'login/',
            'logout/',
            '/account/info/',
            '/account/update_password/',
            '/account/update_avatar/',
            '/log_file_stream/',
        ]

        from bases.whitelist import white_list_registry
        white_list_registry.register(app_white_list)
